package com.hualan.controller;

import com.hualan.service.yuYueInterService;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者:烟火味的男孩儿
 * 描述:一条寻找bug的道路
 * 时间:2024/9/6
 */
@RestController
@RequestMapping("/teacher")
public class yuYueInterConroller {
    //注入service层的数据
    @Autowired
    private yuYueInterService service;

    @GetMapping("/all")
    public R getTeachersData() {
        return service.queryTeachers();
    }
}
